<?php

class myUser extends sfGuardSecurityUser
{
  public static function id()
  {
    return (int)sfContext::getInstance()->getUser()->getAttribute('user_id', 0, 'sfGuardSecurityUser');
  }

  public function __toString()
  {
    return (string)$this->getProfile();
  }
}
